﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
    /// <summary>
    /// 信息填报表
    /// </summary>
    public class EM_Tool
    {
        /// <summary>
        /// ID标识
        /// </summary>
        [Key] 
        public Guid ID { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string? Name { get; set; }
        /// <summary>
        /// 性别：男为1，女为2，未知为0
        /// </summary>
        public GenderEnum Gender { get; set; }
        /// <summary>
        /// 中考成绩
        /// </summary>
        public float Performance { get; set; }
        /// <summary>
        /// 学院专业
        /// </summary>
        public string? Major { get; set; }
        /// <summary>
        /// 入学时间
        /// </summary>
        [Required]
        [StringLength(25)]
        public DateTime Enrol { get; set; }
        /// <summary>
        /// 电话号码
        /// </summary>
        [Required]
        public string? number { get; set; }
        /// <summary>
        /// 毕业院校
        /// </summary>
        [Required]
        [StringLength(25)]
        public string? Graduate { get; set; }
        /// <summary> 
        /// 年龄
        /// </summary>
        [Required]
        public int Age { get; set; }

    }
    public enum GenderEnum
    {
        男 = 1,
        女 = 2,
        未知 = 0
    }
}

